package com.example.myapplication;

import android.Manifest;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;

public class MediaActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_media);
        requestPermissions(new String[]{
                Manifest.permission.CAMERA,
                Manifest.permission.RECORD_AUDIO
        }, 100);//随便给一个请求码
    }


    public void btn_media_record(View view) {
        startActivity(new Intent(this, MediaRecordActivity.class));
    }

    public void btnPlay(View view) {
        startActivity(new Intent(this, VideoActivity.class));
    }

    public void btnVideoView(View view) {
        startActivity(new Intent(this, VideoViewActivity.class));
    }

    public void btnSoundPool(View view) {
        startActivity(new Intent(this, SoundPoolActivity.class));
    }
}